package com.zhz.mall.portal.modules.ums.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhz.mall.portal.modules.ums.model.UmsMemberReceiveAddress;

import java.util.List;

/**
 * <p>
 * 会员收货地址表 服务类
 * </p>
 *
 * @author zhouhengzhe
 * @since 2023-02-04
 */
public interface UmsMemberReceiveAddressService extends IService<UmsMemberReceiveAddress> {

    /**
     * 添加用户地址
     *
     * @param address
     * @return
     */
    Boolean add(UmsMemberReceiveAddress address);

    /**
     * 通过id更新用户地址
     *
     * @param address
     * @return
     */
    Boolean edit(UmsMemberReceiveAddress address);

    /**
     * 根据id删除收件地址
     *
     * @param id
     * @return
     */
    Boolean delete(Long id);

    /**
     * 获取当前用户地址信息
     *
     * @return
     */
    List<UmsMemberReceiveAddress> listByMemberId();
}
